

import React from 'react';
import {
  Text,
  View,
  StyleSheet,
  Button
} from 'react-native';
import { Avator, MyBottom } from "../../components/index";
import global from '../../global';
const Home = (props) => {
  let goPerson = () => {
    props.navigation.push("Person")
  }
  return (
    <View>
      <Button title='去个人中心' onPress={() => { goPerson() }}></Button>
      <MyBottom onPress={() => { console.log("我设置了一个onpress函数") }}></MyBottom>
      <MyBottom title="按钮名称" style={[global._style.btn.btn2]}></MyBottom>
      <MyBottom title="按钮名称" style={[global._style.btn.btn1]}></MyBottom>
    </View>
  );
};

const styles = StyleSheet.create({

});

export default Home;
